package him.action.gotjob;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import him.action.Action;
import him.action.ActionForward;
import him.dto.gotjob.JobDTO;
import him.service.GotJobListService;
import him.serviceimple.GotJobListServiceImple;

public class GotJobDetailAction implements Action {

	@Override
	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {
		ActionForward actfoward = new ActionForward();
		GotJobListService service=GotJobListServiceImple.getInstance();		
		String id=request.getParameter("id");
		JobDTO dto=new JobDTO();
		dto.setId(id);
		JobDTO rsdto=service.getGotJobDetail(dto);
		System.out.println(rsdto);
		request.setAttribute("gdto", rsdto);
		actfoward.setUrl("gotJobDetail");
		return actfoward;
	}

}
